import request from '@/utils/request'

export function getTreeListApi(){
    return request({url:'/park/sys/permision/all/tree'})
}
//根据id查询权限信息
export function getPermisionByIdApi(id){
    return request({url:'/park/sys/role/'+id})
}
//查询角色关联的用户列表
export function getUserListByRoleIdApi(id,params){
    return request({url:'/park/sys/roleUser/'+id,params})
}
//添加角色
export function addRoleApi(data){
    return request({url:'/park/sys/role',method:'post',data})
}
//编辑角色
export function editRoleApi(data){
    return request({url:'/park/sys/role',method:'put',data})
}
//删除角色
export function delRoleApi(id){
    return request({url:'/park/sys/role/'+id,method:'delete'})
}